#ifndef LINKDESCRIPTION_H
#define LINKDESCRIPTION_H

#include <QFrame>

namespace Ui {
    class LinkDescription;
}

class LinkDescription : public QFrame
{
    Q_OBJECT
    int index;
    int proxy;

    static const int FREE=0;
    static const int INUSE=1;
    static const int DOWNLOADING_FILE=2;
    static const int WAIT=3;
    static const int FINISHED=4;

    static const int ERR_DELETED = 6;
    static const int ERR_UNKNOWN_PAGE = 7;
    static const int ERR_SOCKET_ERROR = 8;
    static const int ERR_UNKNOWN_PROVIDER = 9;

public:
    explicit LinkDescription(int,QWidget *parent = 0);
    ~LinkDescription();
    void setUrl(QString);
    void setProxy(int);
    void setState(int);
    void setProgress(int);
    void setSpeed(int);

private:
    Ui::LinkDescription *ui;
};

#endif // LINKDESCRIPTION_H
